package com.bdqn.rabbitmqporducer1.service;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
@RabbitListener(queues = "MyDirectQueue1")
public class DirectReceiverB {
    @RabbitHandler
    public void process(Map ReceiveMessage) {
        System.out.println("消费者DirectReceiverB收到消息：" + ReceiveMessage);
    }
}
